const tcb = require('@cloudbase/node-sdk')
const app = tcb.init({
    env: tcb.SYMBOL_CURRENT_ENV
})
var db = app.database();
exports.main = async (event, context) => {
    console.log('context',context);
    return {
        code: 0,
        data: (await db.collection("bookmarkTypes").add(event))
    }
  };
  